
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html><head><title>Python: module pychess.Utils.book</title>
</head><body bgcolor="#f0f0f8">

<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
<tr bgcolor="#7799ee">
<td valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial">&nbsp;<br><big><big><strong><a href="pychess.html"><font color="#ffffff">pychess</font></a>.<a href="pychess.Utils.html"><font color="#ffffff">Utils</font></a>.book</strong></big></big></font></td
><td align=right valign=bottom
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/thomas/Programmering/python/skak/svn/lib/pychess/Utils/book.py">/home/thomas/Programmering/python/skak/svn/lib/pychess/Utils/book.py</a></font></td></tr></table>
    <p></p>
<p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#aa55cc">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
    
<tr><td bgcolor="#aa55cc"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="atexit.html">atexit</a><br>
</td><td width="25%" valign=top><a href="os.html">os</a><br>
</td><td width="25%" valign=top><a href="pychess.System.tsqlite.html">pychess.System.tsqlite</a><br>
</td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#eeaa77">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
    
<tr><td bgcolor="#eeaa77"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><dl><dt><a name="-fen"><strong>fen</strong></a>(board)</dt><dd><tt>#&nbsp;We&nbsp;can't&nbsp;use&nbsp;boardhash&nbsp;for&nbsp;dbkeys,&nbsp;as&nbsp;the&nbsp;boardhashes&nbsp;vary&nbsp;for&nbsp;each&nbsp;time&nbsp;Board.py&nbsp;is&nbsp;loaded.</tt></dd></dl>
 <dl><dt><a name="-getOpenings"><strong>getOpenings</strong></a>(board)</dt></dl>
 <dl><dt><a name="-load"><strong>load</strong></a>(file)</dt></dl>
 <dl><dt><a name="-remake"><strong>remake</strong></a>()</dt></dl>
 <dl><dt><a name="-stripBrackets"><strong>stripBrackets</strong></a>(string)</dt></dl>
</td></tr></table><p>
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
<tr bgcolor="#55aa55">
<td colspan=3 valign=bottom>&nbsp;<br>
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
    
<tr><td bgcolor="#55aa55"><tt>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</tt></td><td>&nbsp;</td>
<td width="100%"><strong>AN</strong> = 3<br>
<strong>ARTIFICIAL</strong> = 1<br>
<strong>BISHOP</strong> = 3<br>
<strong>BLACK</strong> = 1<br>
<strong>BLACKWON</strong> = 3<br>
<strong>BLACK_CASTLED</strong> = 32<br>
<strong>BLACK_OO</strong> = 4<br>
<strong>BLACK_OOO</strong> = 8<br>
<strong>DRAW</strong> = 1<br>
<strong>DRAW_50MOVES</strong> = 1<br>
<strong>DRAW_ACCEPTION</strong> = 3<br>
<strong>DRAW_AGREE</strong> = 3<br>
<strong>DRAW_INSUFFICIENT</strong> = 4<br>
<strong>DRAW_OFFER</strong> = 2<br>
<strong>DRAW_REPITITION</strong> = 0<br>
<strong>DRAW_STALEMATE</strong> = 2<br>
<strong>FAN</strong> = 2<br>
<strong>FLAG_CALL</strong> = 1<br>
<strong>HINT</strong> = 0<br>
<strong>KING</strong> = 0<br>
<strong>KNIGHT</strong> = 4<br>
<strong>LAN</strong> = 1<br>
<strong>LOCAL</strong> = 0<br>
<strong>NAME</strong> = 'PyChess'<br>
<strong>PAWN</strong> = 5<br>
<strong>PREFIX</strong> = '/home/thomas/Programmering/python/skak/svn'<br>
<strong>QUEEN</strong> = 1<br>
<strong>REMOTE</strong> = 2<br>
<strong>RESIGNATION</strong> = 0<br>
<strong>ROOK</strong> = 2<br>
<strong>RUNNING</strong> = 0<br>
<strong>SAN</strong> = 0<br>
<strong>SPY</strong> = 1<br>
<strong>VERSION</strong> = '0.6.0_beta'<br>
<strong>WHITE</strong> = 0<br>
<strong>WHITEWON</strong> = 2<br>
<strong>WHITE_CASTLED</strong> = 16<br>
<strong>WHITE_OO</strong> = 1<br>
<strong>WHITE_OOO</strong> = 2<br>
<strong>WON_CALLFLAG</strong> = 6<br>
<strong>WON_MATE</strong> = 7<br>
<strong>WON_RESIGN</strong> = 5<br>
<strong>chr2Sign</strong> = {'b': 3, 'k': 0, 'n': 4, 'p': 5, 'q': 1, 'r': 2}<br>
<strong>hashfALPHA</strong> = 0<br>
<strong>hashfBETA</strong> = 1<br>
<strong>hashfEXACT</strong> = 2<br>
<strong>localePrefixes</strong> = ('/usr/share/locale', '/usr/local/share/locale')<br>
<strong>path</strong> = '/home/thomas/Programmering/python/skak/svn/open.db'<br>
<strong>prefixes</strong> = ('/usr/share', '/usr/local/share', '/usr/share/games', '/usr/local/share/games')<br>
<strong>reprColor</strong> = ['White', 'Black']<br>
<strong>reprMode</strong> = ['hint', 'spy']<br>
<strong>reprPiece</strong> = ['King', 'Queen', 'Rook', 'Bishop', 'Knight', 'Pawn']<br>
<strong>reprResult</strong> = ['*', '1/2-1/2', '1-0', '0-1']<br>
<strong>reprSign</strong> = ['K', 'Q', 'R', 'B', 'N', 'P']</td></tr></table>
</body></html>